﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dao;

namespace Website.uc
{
    public partial class ucUser : System.Web.UI.UserControl
    {
        UserDao userDao = new UserDao();
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack){
                LoadAllUser();
            }
        }

        private void LoadAllUser()
        {
            gridUser.DataSource = userDao.getAllUser();
            gridUser.DataBind();
        }
    }
}